const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  pages: {
    index : {
      entry: 'src/main.js',
      title: 'Real Vision'
    }
  },
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/api' // 路径重写（如果后端接口本身就以/api开头则无需修改）
        }
      }
    },
  },
})
